package com.coolgor.axnut.dao.mdmis;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.coolgor.axnut.entity.mdmis.Policy;
import com.coolgor.axnut.entity.mdmis.PolicyCondition;

public interface PolicyDao {

	Policy queryPolicyByInsuerNo(String insureNo);	
	
	List<Policy> queryPolicyList(@Param("policyCondition") Policy policyCondition,
								@Param("rowIndex") int rowIndex,
								@Param("pageSize") int pageSize);
	int queryPolicyCount(@Param("policyCondition") Policy policyCondition);

	List<Policy> queryPolicyListByInsureNo(@Param("insureNoList") List<String> insureNoList,
										@Param("rowIndex") int rowIndex,
										@Param("pageSize") int pageSize);	
	int queryPolicyCountByInsureNo(List<String> insureNoList);
	
	List<Policy> queryPolicyListByCondition(@Param("policyCondition") PolicyCondition policyCondition,
											@Param("rowIndex") int rowIndex,
											@Param("pageSize") int pageSize);
	int queryPolicyCountByCondition(@Param("policyCondition") PolicyCondition policyCondition);
	
	int insertPolicy(Policy policy);
	
	int updatePolicy(Policy policy);
	
	int deletePolicy(Policy policy);
	
	int batchDeletePolicy(List<String> idList);

}
